package com.ygqh.baby.service.wechat.model.good;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * 好物圈——物品所在门店
 * （所有属性必填）
 *
 * @Author: sunshuo
 * @Date: 2019/5/24 15:56
 * @Version: 1.0
 */
public class GoodPoi implements Serializable {

	private static final long serialVersionUID = -8284937163198340509L;

	/**
	 * 门店的经度，WGS84标准
	 */
	private double longitude;

	/**
	 * 门店的纬度，WGS84标准
	 */
	private double latitude;

	/**
	 * 门店可送达半径，单位km
	 */
	private double radius;

	/**
	 * 门店名称（仅为商户名，如：国美、麦当劳，不应包含地区、地址、分店名等信息，错误示例：北京国美），20个字符以内
	 */
	private String businessName;

	/**
	 * 分店名称（不应包含地区信息，不应与门店名有重复，错误示例：北京王府井店），20个字符以内
	 */
	private String branchName;

	/**
	 * 门店地址（不包含省市区信息，如：新港中路123号）
	 */
	private String address;

	@JSONField(name = "longitude")
	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	@JSONField(name = "latitude")
	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	@JSONField(name = "radius")
	public double getRadius() {
		return radius;
	}

	public void setRadius(double radius) {
		this.radius = radius;
	}

	@JSONField(name = "business_name")
	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	@JSONField(name = "branch_name")
	public String getBranchName() {
		return branchName;
	}

	public void setBranchName(String branchName) {
		this.branchName = branchName;
	}

	@JSONField(name = "address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "GoodPoi{" +
				"longitude=" + longitude +
				", latitude=" + latitude +
				", radius=" + radius +
				", businessName='" + businessName + '\'' +
				", branchName='" + branchName + '\'' +
				", address='" + address + '\'' +
				'}';
	}
}
